{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="#">选项卡管理</a></li>
</ul>
<div class="app-content">
<div class="app-form">
<form action="" method="post" enctype="multipart/form-data" >
	<div class="app-table-list">
		<div class="panel panel-default">
			<div class="table-responsive">
				<table class="table table-hover">
					<thead>
						<tr>
							<th class="text-center" width="25%">选项名称</th>
							<th class="text-center" width="25%">修改名称(最多写两字)</th>
							<th class="text-center" width="15%">排序(数字越大越靠前)</th>
							<th class="text-center" width="20%">列表排序方式</th>
							<th class="text-center" width="15%">开关</th>
						</tr>
					</thead>
					<tbody>
						<tr class="text-center">
							<td>商家</td>
							<td><input type="text" class="form-control" placeholder="商家" maxlength="4"  name="plugin[sjname]"  value="{$plugin['sjname']}"/></td>
							<td><input class="form-control" type="number"  name="plugin[sjorder]"  value="{$plugin['sjorder']}"/></td>
							<td>
								<select name="plugin[sjsort]" style="width: 100%;">
									<option value="2" {if $plugin['sjsort'] == 2 || empty($plugin['sjsort'])} selected="selected" {/if}>店铺距离</option>
									<option value="3" {if $plugin['sjsort'] == 3} selected="selected" {/if}>推荐设置</option>
									<option value="1" {if $plugin['sjsort'] == 1} selected="selected" {/if}>创建时间</option>
									<option value="4" {if $plugin['sjsort'] == 4} selected="selected" {/if}>浏览人气</option>
								</select>
							</td>
							<td>
								<input type="checkbox" class="js-switch" name="plugin[sjstatus]" value="1" {if $plugin['sjstatus']}checked="checked" {/if}>
							</td>
						</tr>
						<tr>
							<td style="text-align: center;">抢购</td>
							<td style="text-align: center;"><input class="form-control" type="text" placeholder="抢购" maxlength="4"  name="plugin[qgname]"  value="{$plugin['qgname']}"/></td>
							<td style="text-align: center;"><input class="form-control" type="number"  name="plugin[qgorder]"  value="{$plugin['qgorder']}"/></td>
							<td>
								<select name="plugin[qgsort]" style="width: 100%;">
									<option value="2" {if $plugin['qgsort'] == 2 || empty($plugin['qgsort'])} selected="selected" {/if}>店铺距离</option>
									<option value="3" {if $plugin['qgsort'] == 3} selected="selected" {/if}>推荐设置</option>
									<option value="1" {if $plugin['qgsort'] == 1} selected="selected" {/if}>创建时间</option>
									<option value="4" {if $plugin['qgsort'] == 4} selected="selected" {/if}>浏览人气</option>
								</select>
							</td>
							<td style="text-align: center;">
								<input type="checkbox" class="js-switch" name="plugin[qgstatus]" value="1" {if $plugin['qgstatus']}checked="checked" {/if}>
							</td>
						</tr>
						{if p('wlcoupon')}
						<tr>
							<td style="text-align: center;">卡券</td>
							<td style="text-align: center;"><input class="form-control" type="text" placeholder="卡券" maxlength="4" name="plugin[kqname]"  value="{$plugin['kqname']}"/></td>
							<td style="text-align: center;"><input class="form-control" type="number"  name="plugin[kqorder]"  value="{$plugin['kqorder']}"/></td>
							<td>
								<select name="plugin[kqsort]" style="width: 100%;">
									<option value="2" {if $plugin['kqsort'] == 2 || empty($plugin['kqsort'])} selected="selected" {/if}>店铺距离</option>
									<option value="3" {if $plugin['kqsort'] == 3} selected="selected" {/if}>推荐设置</option>
									<option value="1" {if $plugin['kqsort'] == 1} selected="selected" {/if}>创建时间</option>
									<option value="4" {if $plugin['kqsort'] == 4} selected="selected" {/if}>浏览人气</option>
								</select>
							</td>
							<td style="text-align: center;">
								<input type="checkbox" class="js-switch" name="plugin[kqstatus]" value="1" {if $plugin['kqstatus']}checked="checked" {/if}>
							</td>
						</tr>
						{/if}
						{if p('halfcard')}
						<tr>
							<td style="text-align: center;">特权</td>
							<td style="text-align: center;"><input class="form-control" placeholder="特权" maxlength="4" type="text"  name="plugin[wzname]"  value="{$plugin['wzname']}"/></td>
							<td style="text-align: center;"><input class="form-control" type="number"  name="plugin[wzorder]"  value="{$plugin['wzorder']}"/></td>
							<td>
								<select name="plugin[wzsort]" style="width: 100%;">
									<option value="2" {if $plugin['wzsort'] == 2 || empty($plugin['wzsort'])} selected="selected" {/if}>店铺距离</option>
									<option value="3" {if $plugin['wzsort'] == 3} selected="selected" {/if}>推荐设置</option>
									<option value="1" {if $plugin['wzsort'] == 1} selected="selected" {/if}>创建时间</option>
									<option value="4" {if $plugin['wzsort'] == 4} selected="selected" {/if}>浏览人气</option>
								</select>
							</td>
							<td style="text-align: center;">
								<input type="checkbox" class="js-switch" name="plugin[wzstatus]" value="1" {if $plugin['wzstatus']}checked="checked" {/if}>
							</td>
						</tr>
						<tr class="text-center">
							<td>礼包</td>
							<td><input type="text" class="form-control" placeholder="礼包" maxlength="4"  name="plugin[gpname]"  value="{$plugin['gpname']}"/></td>
							<td><input class="form-control" type="number"  name="plugin[gporder]"  value="{$plugin['gporder']}"/></td>
							<td>
								<select name="plugin[gpsort]" style="width: 100%;">
									<option value="2" {if $plugin['gpsort'] == 2 || empty($plugin['gpsort'])} selected="selected" {/if}>店铺距离</option>
									<option value="3" {if $plugin['gpsort'] == 3} selected="selected" {/if}>推荐设置</option>
									<option value="1" {if $plugin['gpsort'] == 1} selected="selected" {/if}>创建时间</option>
									<option value="4" {if $plugin['gpsort'] == 4} selected="selected" {/if}>浏览人气</option>
								</select>
							</td>
							<td>
								<input type="checkbox" class="js-switch" name="plugin[gpstatus]" value="1" {if $plugin['gpstatus']}checked="checked" {/if}>
							</td>
						</tr>
						{/if}
						{if p('wlfightgroup')}
						<tr>
							<td style="text-align: center;">拼团</td>
							<td style="text-align: center;"><input class="form-control" type="text"  placeholder="拼团" maxlength="4" name="plugin[ptname]"  value="{$plugin['ptname']}"/></td>
							<td style="text-align: center;"><input class="form-control" type="number"  name="plugin[ptorder]"  value="{$plugin['ptorder']}"/></td>
							<td>
								<select name="plugin[ptsort]" style="width: 100%;">
									<option value="2" {if $plugin['ptsort'] == 2 || empty($plugin['ptsort'])} selected="selected" {/if}>店铺距离</option>
									<option value="3" {if $plugin['ptsort'] == 3} selected="selected" {/if}>推荐设置</option>
									<option value="1" {if $plugin['ptsort'] == 1} selected="selected" {/if}>创建时间</option>
									<option value="4" {if $plugin['ptsort'] == 4} selected="selected" {/if}>浏览人气</option>
								</select>
							</td>
							<td style="text-align: center;">
								<input type="checkbox" class="js-switch" name="plugin[ptstatus]" value="1" {if $plugin['ptstatus']}checked="checked" {/if}>
							</td>
						</tr>
						{/if}
						{if p('pocket')}
						<tr>
							<td style="text-align: center;">同城</td>
							<td style="text-align: center;"><input class="form-control" type="text" placeholder="同城" maxlength="4"  name="plugin[tcname]"  value="{$plugin['tcname']}"/></td>
							<td style="text-align: center;"><input class="form-control" type="number"  name="plugin[tcorder]"  value="{$plugin['tcorder']}"/></td>
							<td>
								<select name="plugin[tcsort]" style="width: 100%;">
									<option value="1" {if $plugin['tcsort'] == 1 || empty($plugin['tcsort'])} selected="selected" {/if}>发帖时间</option>
									<option value="2" {if $plugin['tcsort'] == 2} selected="selected" {/if}>浏览人气</option>
									<option value="3" {if $plugin['tcsort'] == 3} selected="selected" {/if}>分享数量</option>
									<option value="4" {if $plugin['tcsort'] == 4} selected="selected" {/if}>点赞数量</option>
									<option value="5" {if $plugin['tcsort'] == 5} selected="selected" {/if}>回复时间</option>
								</select>
							</td>
							<td style="text-align: center;">
								<input type="checkbox" class="js-switch" name="plugin[tcstatus]" value="1" {if $plugin['tcstatus']}checked="checked" {/if}>
							</td>
						</tr>
						{/if}
						{if p('activity')}
						<tr>
							<td style="text-align: center;">活动</td>
							<td style="text-align: center;"><input class="form-control" type="text" placeholder="活动" maxlength="4"  name="plugin[hdname]"  value="{$plugin['hdname']}"/></td>
							<td style="text-align: center;"><input class="form-control" type="number"  name="plugin[hdorder]"  value="{$plugin['hdorder']}"/></td>
							<td>
								<select name="plugin[hdsort]" style="width: 100%;">
									<option value="2" {if $plugin['hdsort'] == 2 || empty($plugin['hdsort'])} selected="selected" {/if}>店铺距离</option>
									<option value="3" {if $plugin['hdsort'] == 3} selected="selected" {/if}>推荐设置</option>
									<option value="1" {if $plugin['hdsort'] == 1} selected="selected" {/if}>创建时间</option>
									<option value="4" {if $plugin['hdsort'] == 4} selected="selected" {/if}>浏览人气</option>
								</select>
							</td>
							<td style="text-align: center;">
								<input type="checkbox" class="js-switch" name="plugin[hdstatus]" value="1" {if $plugin['hdstatus']}checked="checked" {/if}>
							</td>
						</tr>
						{/if}
						{if p('groupon')}
						<tr>
							<td style="text-align: center;">团购</td>
							<td style="text-align: center;"><input class="form-control" type="text" placeholder="团购" maxlength="4"  name="plugin[tgname]"  value="{$plugin['tgname']}"/></td>
							<td style="text-align: center;"><input class="form-control" type="number"  name="plugin[tgorder]"  value="{$plugin['tgorder']}"/></td>
							<td>
								<select name="plugin[tgsort]" style="width: 100%;">
									<option value="2" {if $plugin['tgsort'] == 2 || empty($plugin['tgsort'])} selected="selected" {/if}>店铺距离</option>
									<option value="3" {if $plugin['tgsort'] == 3} selected="selected" {/if}>推荐设置</option>
									<option value="1" {if $plugin['tgsort'] == 1} selected="selected" {/if}>创建时间</option>
									<option value="4" {if $plugin['tgsort'] == 4} selected="selected" {/if}>浏览人气</option>
								</select>
							</td>
							<td style="text-align: center;">
								<input type="checkbox" class="js-switch" name="plugin[tgstatus]" value="1" {if $plugin['tgstatus']}checked="checked" {/if}>
							</td>
						</tr>
						{/if}
						{if p('bargain')}
						<tr>
							<td style="text-align: center;">砍价</td>
							<td style="text-align: center;"><input class="form-control" type="text" placeholder="砍价" maxlength="4"  name="plugin[kjname]"  value="{$plugin['kjname']}"/></td>
							<td style="text-align: center;"><input class="form-control" type="number"  name="plugin[kjorder]"  value="{$plugin['kjorder']}"/></td>
							<td>
								<select name="plugin[kjsort]" style="width: 100%;">
									<option value="2" {if $plugin['kjsort'] == 2 || empty($plugin['kjsort'])} selected="selected" {/if}>店铺距离</option>
									<option value="3" {if $plugin['kjsort'] == 3} selected="selected" {/if}>推荐设置</option>
									<option value="1" {if $plugin['kjsort'] == 1} selected="selected" {/if}>创建时间</option>
									<option value="4" {if $plugin['kjsort'] == 4} selected="selected" {/if}>浏览人气</option>
								</select>
							</td>
							<td style="text-align: center;">
								<input type="checkbox" class="js-switch" name="plugin[kjstatus]" value="1" {if $plugin['kjstatus']}checked="checked" {/if}>
							</td>
						</tr>
						{/if}
						{if p('consumption')}
						<tr class="text-center">
							<td>积分</td>
							<td><input type="text" class="form-control" placeholder="积分" maxlength="4"  name="plugin[jfname]"  value="{$plugin['jfname']}"/></td>
							<td><input class="form-control" type="number"  name="plugin[jforder]"  value="{$plugin['jforder']}"/></td>
							<td>
								<select name="plugin[jfsort]" style="width: 100%;">
									<!--<option value="2" {if $plugin['jfsort'] == 2 || empty($plugin['jfsort'])} selected="selected" {/if}>店铺距离</option>-->
									<option value="1" {if $plugin['jfsort'] == 1} selected="selected" {/if}>创建时间</option>
									<option value="3" {if $plugin['jfsort'] == 3} selected="selected" {/if}>推荐设置</option>
									<option value="4" {if $plugin['jfsort'] == 4} selected="selected" {/if}>浏览人气</option>
								</select>
							</td>
							<td>
								<input type="checkbox" class="js-switch" name="plugin[jfstatus]" value="1" {if $plugin['jfstatus']}checked="checked" {/if}>
							</td>
						</tr>
						{/if}
						{if p('recruit')}
							<tr>
								<td style="text-align: center;">招聘</td>
								<td style="text-align: center;"><input class="form-control" type="text" placeholder="招聘" maxlength="4"  name="plugin[zpname]"  value="{$plugin['zpname']}"/></td>
								<td style="text-align: center;"><input class="form-control" type="number"  name="plugin[zporder]"  value="{$plugin['zporder']}"/></td>
								<td>
									<select name="plugin[zpsort]" style="width: 100%;">
										<option value="1" {if $plugin['zpsort'] == 1 || !$plugin['zpsort']} selected="selected" {/if}>推荐排序</option>
										<option value="2" {if $plugin['zpsort'] == 2} selected="selected" {/if}>浏览量</option>
										<option value="3" {if $plugin['zpsort'] == 3} selected="selected" {/if}>发布时间</option>
										<option value="4" {if $plugin['zpsort'] == 4} selected="selected" {/if}>距离排序</option>
									</select>
								</td>
								<td style="text-align: center;">
									<input type="checkbox" class="js-switch" name="plugin[zpstatus]" value="1" {if $plugin['zpstatus']}checked="checked" {/if}>
								</td>
							</tr>
						{/if}
						{if p('dating')}
							<tr>
								<td style="text-align: center;">相亲</td>
								<td style="text-align: center;"><input class="form-control" type="text" placeholder="相亲" maxlength="4"  name="plugin[xqname]"  value="{$plugin['xqname']}"/></td>
								<td style="text-align: center;"><input class="form-control" type="number"  name="plugin[xqorder]"  value="{$plugin['xqorder']}"/></td>
								<td>
									<select name="plugin[xqsort]" style="width: 100%;">
										<option value="1" {if $plugin['xqsort'] == 1 || !$plugin['xqsort']} selected="selected" {/if}>推荐排序</option>
										<option value="2" {if $plugin['xqsort'] == 2} selected="selected" {/if}>浏览量</option>
										<option value="3" {if $plugin['xqsort'] == 3} selected="selected" {/if}>发布时间</option>
										<option value="4" {if $plugin['xqsort'] == 4} selected="selected" {/if}>距离排序</option>
									</select>
								</td>
								<td style="text-align: center;">
									<input type="checkbox" class="js-switch" name="plugin[xqstatus]" value="1" {if $plugin['xqstatus']}checked="checked" {/if}>
								</td>
							</tr>
						{/if}
					</tbody>
				</table>
			</div>
            <div class="app-table-foot clearfix">
                <div class="pull-left">
                    <input type="submit" name="submit"  value="保存" class="btn btn-primary min-width" />
                    <input type="hidden" name="token" value="{$_W['token']}" />
                </div>
                <div class="pull-right">

                </div>
            </div>
		</div>
	</div>
</form>
</div>
</div>
{php include wl_template('common/footer');}